<%@ page contentType="text/html; charset=iso-8859-1" language="java" %>
<%
String error=request.getParameter("error");
if(error==null || error=="null"){
 error="";
}
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Forgot info</title>

<script>
function trim(s) 
{
    return s.replace( /^\s*/, "" ).replace( /\s*$/, "" );
}

function validate()
{
    if(trim(document.retrive_pw.sEmail.value)=="")
    {
      alert("Please fill out E-mail.");
      document.retrive_pw.sEmail.focus();
      return false;
    }
}
</script>
</head>


<body>
<div><%=error%></div>
<form name="retrive_pw" onSubmit="return validate();" action="info_retrive.jsp" method="post">
E-mail <input type="text" name="sEmail" /><br>
<input type="submit" name="sSubmit" value="Submit" /><br>
</form>
</body>
</html>